package graph.drawingshapes.tools
{
	import flash.display.Graphics;

	public class PencilDrawingTool extends SimpleDrawingTool
	{		
		public static const NAME:String = "PencilDrawingTool"
		public override function get getName():String 
		{
			return NAME;
		}
		
		public function PencilDrawingTool(size:Number=DefaultSize, color:uint=DefaultColor, alpha:Number=DefaultAlpha)
		{
			super(size, color, alpha);
		}
		
		protected override function draw():void
		{
			var halfSize:Number = size/2;
			this.graphics.drawRect(x-halfSize, y-halfSize, halfSize, halfSize);
		}
	}
}